var JJHM = function (){
  this.constructor.apply(this, arguments);
};



JJHM.prototype = {

  /**
  * @description
  */
  constructor : function(){
    this.loaderInsert();
  },



  /**
  * @description
  */
  loaderInsert: function (){
    var self = this;

    var modules = [
      "connection",
      "dom",
      "event",
      "selector"
    ];

    var loader = new YAHOO.util.YUILoader({ 
      base         : "", 
      require      : modules, 
      loadOptional : false, 
      combine      : true, 
      filter       : "MIN", 
      allowRollup  : true,
      scope        : self,
      onSuccess    : self.handleLoadSuccess 
    });

    loader.insert();
  },



  /**
  * @description
  */
  handleLoadSuccess: function (){
    var type = "";

    window.Connect  = YAHOO.util.Connect;
    window.Dom      = YAHOO.util.Dom;
    window.Event    = YAHOO.util.Event;
    window.Selector = YAHOO.util.Selector;

    Event.onDOMReady(this.handleDomReady, this, true);
  },



  /**
  * @description
  */
  handleDomReady: function (){
    var self = this;
    
    this.initMap();
  },




  /**
  * @description
  */
  initMap: function (){
    var self = this;

    var myLatlng = new google.maps.LatLng(36.2048240, 138.2529240);

    var myOptions = {
      zoom      : 5,
      center    : myLatlng,
      mapTypeId : google.maps.MapTypeId.ROADMAP
    }

    this.map      = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
    this.geocoder = new google.maps.Geocoder();
  }

};
  
  
var jjhm = new JJHM();
